package cn.hcbycloud.auth.mapper;


import cn.hcbycloud.auth.model.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 角色表
 * @author gaoheng
 * @date 2022-01-22 00:22:15
 */
public interface RoleMapper extends BaseMapper<Role> {


    /**
     * 根据用户ID查询角色编码集合
     * @param userId
     * @param tenantId
     * @return
     */
    Set<String> selectRoleCodesByUserId(@Param("userId") String userId, @Param("tenantId") String tenantId);

}
